package com.imut.onlinebanking.dealings.servicr.impl;

import com.imut.onlinebanking.dealings.mapper.TransactionsMapper;
import com.imut.onlinebanking.dealings.pojo.vo.TransactionsVO;
import com.imut.onlinebanking.dealings.servicr.TransactionsServiceI;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
@Slf4j
public class TransactionsServiceImpl implements TransactionsServiceI {

    @Autowired
    private TransactionsMapper transactionsMapper;



    @Override
    public List<TransactionsVO> findTransactionsByUserId(Integer userId) {
        return transactionsMapper.findTransactionsByUserId(userId);
    }
}
